package com.et.sale.ticket.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.et.sale.ticket.dao.TicketDao;
import com.et.sale.ticket.entity.TicketEntity;
import com.et.sale.ticket.service.TicketService;

@Service
public class TicketServiceImpl implements TicketService {

	@Autowired
	private TicketDao dao;
	
	public int addSave(TicketEntity entity) {
		return dao.addSave(entity);
	}

	
	public List<TicketEntity> list(int currentPage, int pageSize) {
		return dao.list(currentPage,pageSize);
	}


	public TicketEntity findById(int id) {
		return dao.findById(id);
	}


	public int updateSave(TicketEntity entity) {
		return dao.updateSave(entity);
	}


	public int delete(int id) {
		return dao.delete(id);
	}

}
